<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1.0">
		<title>账号密码设置</title>
		<link rel="stylesheet" href="../layui/css/layui.css">
		<link rel="stylesheet" type="text/css" href="../css/upsession.css" />
		<script src="../js/jquery-3.3.1.js"></script>
		<script src="../layui/layui.all.js"></script>
	</head>
	<body>
		<header>
			<a href="javascript:history.back(-1)" class="back"><img src="../img/back.png" height="18px"></a>
			<div class="center title">账号密码设置</div>
		</header>
		<div>
				<ul>
					<li>
						<div>
					<div class="p-title">	<p >新密码</p> </div>
						<div  class="p-content"><input type="password" name="newPwd" placeholder="字母数字混合至少8位"></div>
						</div>
					</li>
					<li>
						<div>
					<div>	<p class="p-title">重复密码</p> </div>
						<div  class="p-content"><input type="password" name="" placeholder="重复输入一次新密码"></div>
						</div>
					</li>
				</ul>
		</div>
	<button class="queding">保存</button>

	</body>
</html>
<script type="text/javascript">
	$('.queding').click(function() {
		var newPwd=$('input[name="newPwd"]').val();
		$.post('/meiyou/setCountPwd',{newPwd:newPwd},function(data){
			if(data.code==100){
				layer.msg(data.msg,{icon:6,time:800},function(){
					window.location.reload();
				});
			}else{
				layer.msg(data.msg,{icon:5,time:800},function(){
					window.location.reload();
				});
			}
		})
	})
</script>